﻿<%@ Page Language="c#" AutoEventWireup="true" Inherits="ManageInside_More" CodeFile="More.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>更多信息</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
    //添加
    function OpenNewAdd()
    {
        var type="<%=Request["type"]%>";        
        window.location.href="WebPubManager.aspx?type="+type;
    }

    //父窗口的打开事件
    function OpenParentDialog(title,url)
    {
        window.parent.openDivDlg(title,url);
    }
    
</script>
<body>
    <form id="Form1" runat="server">
    <div style="text-align: center">
        <table style="width: 100%">
            <tr>
                <td>
                    类型：
                    <asp:DropDownList runat="server" ID="ddlType" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <controlDefine:CustomGridView ID="dgInfo" runat="server" AllowPaging="True" Width="100%"
                        HideTextLength="30" AutoGenerateColumns="False" SkinID="List" DivScdClass-DivButtonClass="input"
                        DivTrdClass-DivButtonClass="input" ShowCmpAndCancel="False" AllowOnMouseOverEvent="False"
                        ShowItemNumber="True" AutoGenerateDeleteConfirm="True" OnOnLoadData="dgInfo_OnLoadData"
                        OnRowCreated="dgInfo_RowCreated" ShowHideColModel="None">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField DataField="ID" Visible="False"></asp:BoundField>
                            <asp:BoundField DataField="TYPE" HeaderText="所属名称"></asp:BoundField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <a href="javascript:OpenParentDialog('信息查看','ManageInside/detail.aspx?id=<%#Eval("id") %>')">
                                        <%#Eval("TITLE")%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="user_name" HeaderText="发布人"></asp:BoundField>
                            <asp:BoundField DataField="TIME" HeaderText="发布时间"></asp:BoundField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlmodify" runat="server" Visible="false">修改</asp:HyperLink>
                                    <asp:HyperLink ID="hlDel" runat="server" Visible="false">删除</asp:HyperLink>
                                    <asp:HyperLink ID="Viewstatus" runat="server" Visible="false">收阅情况</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </controlDefine:CustomGridView>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    <input type="button" id="add" value="新增" onclick="OpenNewAdd();" class="NewButton" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
